home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI O2 Out of Box Experience 2.2
/
SGI O2 Out of Box Experience 2.2.iso
/
cgi-bin
/
nph-startCourtyardMovie.cgi
< prev
next >
Wrap
Text File
|
1998-05-26
|
1KB
|
52 lines
#!/bin/sh
DISPLAY=:0.0
export DISPLAY
# Must do this for mediaplayer to run.....
HOME=/var/tmp
export HOME
# First thing, check to see if we've already started mediaplayer
# If so, exit. If not, continue on.......
found=`/sbin/ps -ef | grep "mediaplayer" | grep -v grep`
if [ -n "$found" ]; then
/usr/bin/X11/xconfirm -c -B "OK" -icon progress \
-t "The movie has already been started..." > /dev/null
exit
fi
server_protocol=$SERVER_PROTOCOL;
server_software=$SERVER_SOFTWARE;
/sbin/echo "$server_protocol 200 OK"
/sbin/echo "Server: $server_software"
/sbin/echo "Content-Type: text/html\n\n";
# Print header
/sbin/echo "<html>\n";
/sbin/echo "<body bgcolor=#000000 text=#996688>\n";
/sbin/echo "<PRE>\n";
/sbin/echo "</PRE>\n";
/sbin/echo "<h2> Starting opening video...</h2>\n";
/sbin/echo "</body>\n";
/sbin/echo "</html>\n";
# run app in foreground
`/usr/people/OutOfBox/bin/dmplayOOBE 0 430 -A 25 -p graphics -z 2 -E auto /CDROM/entryspace/movies/opening.jpg 2> /dev/null`;
# turn the area black again.
/sbin/echo "<html>\n";
/sbin/echo "<body onLoad='history.back()'>\n";
/sbin/echo "</body>\n";
/sbin/echo "</html>\n";